package com.hyh.baowenlioaworking.exception;

import lombok.Data;

/**
 * @BelongsPackage: com.hyh.baowenlioaworking.exception
 * @ClassName ServiceException
 * @Author: hyhWTX
 * @CreateTime: 2023-07-21  16:27
 * @Description: 自定义异常
 * @Version: 1.0
 */
@Data
public class ServiceException extends RuntimeException {
    private String code;

    public ServiceException(String code, String msg) {
        super(msg);
        this.code = code;

    }
}